package com.gigmissions.client;

import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.control.ControlPosition;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Widget;

public class AddVenueControl extends com.google.gwt.maps.client.control.Control.CustomControl{

	private static int TOOLPANEL_BORDER = 5;
	
	protected AddVenueControl(ControlPosition position) {
		super(position);
	
	}

	@Override
	protected Widget initialize(MapWidget map) {

		final AddVenueDialog addGigDialog = new AddVenueDialog(map);
	    HorizontalPanel toolPanel = new HorizontalPanel();
	    toolPanel.setWidth("100%"); 
	    toolPanel.setHeight("10%");
	    toolPanel.add(addGigDialog);
	    toolPanel.setSpacing(TOOLPANEL_BORDER);
	    return toolPanel;
	}

	@Override
	public boolean isSelectable() {
		// TODO Auto-generated method stub
		return false;
	}
}